home *** CD-ROM | disk | FTP | other *** search
- Path: citi2.fr!laba
- From: labed@math-info.univ-paris5.fr (A.Labed)
- Newsgroups: comp.lang.c
- Subject: SYSTEM CALL RESULT
- Date: 2 Jan 1996 16:38:42 GMT
- Organization: CITI2 - Universite Rene Descartes, Paris
- Sender: laba@jupiter (Ali.Labed)
- Distribution: world
- Message-ID: <4cbn2i$env@bisance.citi2.fr>
- NNTP-Posting-Host: jupiter-gw.citi2.fr
- Keywords: SYSTEM CALL RESULT
-
-
- Hi,
-
- Is there a way to get the result of a
- system call within a C program.
- example :
- main()
- {
- system( "ps | wc -l " )
- }
-
- I would like to know the number of
- processes and to get this information
- from within a C program.
-
- Thank you.
-
-
- A LABED
- email : labed@math-info.univ-paris5.fr
- Addresse : E.H.E.I. , UFR Mathematique et Informatique
- Universite Rene Descartes
- 45, Rue des Saints Peres
- Paris.
-